package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class LabelTwoIndexExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LabelTwoIndexExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTwoindexidIsNull() {
            addCriterion("twoIndexId is null");
            return (Criteria) this;
        }

        public Criteria andTwoindexidIsNotNull() {
            addCriterion("twoIndexId is not null");
            return (Criteria) this;
        }

        public Criteria andTwoindexidEqualTo(Integer value) {
            addCriterion("twoIndexId =", value, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidNotEqualTo(Integer value) {
            addCriterion("twoIndexId <>", value, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidGreaterThan(Integer value) {
            addCriterion("twoIndexId >", value, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidGreaterThanOrEqualTo(Integer value) {
            addCriterion("twoIndexId >=", value, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidLessThan(Integer value) {
            addCriterion("twoIndexId <", value, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidLessThanOrEqualTo(Integer value) {
            addCriterion("twoIndexId <=", value, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidIn(List<Integer> values) {
            addCriterion("twoIndexId in", values, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidNotIn(List<Integer> values) {
            addCriterion("twoIndexId not in", values, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidBetween(Integer value1, Integer value2) {
            addCriterion("twoIndexId between", value1, value2, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexidNotBetween(Integer value1, Integer value2) {
            addCriterion("twoIndexId not between", value1, value2, "twoindexid");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameIsNull() {
            addCriterion("twoIndexName is null");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameIsNotNull() {
            addCriterion("twoIndexName is not null");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameEqualTo(String value) {
            addCriterion("twoIndexName =", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotEqualTo(String value) {
            addCriterion("twoIndexName <>", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameGreaterThan(String value) {
            addCriterion("twoIndexName >", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameGreaterThanOrEqualTo(String value) {
            addCriterion("twoIndexName >=", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameLessThan(String value) {
            addCriterion("twoIndexName <", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameLessThanOrEqualTo(String value) {
            addCriterion("twoIndexName <=", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameLike(String value) {
            addCriterion("twoIndexName like", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotLike(String value) {
            addCriterion("twoIndexName not like", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameIn(List<String> values) {
            addCriterion("twoIndexName in", values, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotIn(List<String> values) {
            addCriterion("twoIndexName not in", values, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameBetween(String value1, String value2) {
            addCriterion("twoIndexName between", value1, value2, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotBetween(String value1, String value2) {
            addCriterion("twoIndexName not between", value1, value2, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameIsNull() {
            addCriterion("indexName is null");
            return (Criteria) this;
        }

        public Criteria andIndexnameIsNotNull() {
            addCriterion("indexName is not null");
            return (Criteria) this;
        }

        public Criteria andIndexnameEqualTo(String value) {
            addCriterion("indexName =", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotEqualTo(String value) {
            addCriterion("indexName <>", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameGreaterThan(String value) {
            addCriterion("indexName >", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameGreaterThanOrEqualTo(String value) {
            addCriterion("indexName >=", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameLessThan(String value) {
            addCriterion("indexName <", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameLessThanOrEqualTo(String value) {
            addCriterion("indexName <=", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameLike(String value) {
            addCriterion("indexName like", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotLike(String value) {
            addCriterion("indexName not like", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameIn(List<String> values) {
            addCriterion("indexName in", values, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotIn(List<String> values) {
            addCriterion("indexName not in", values, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameBetween(String value1, String value2) {
            addCriterion("indexName between", value1, value2, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotBetween(String value1, String value2) {
            addCriterion("indexName not between", value1, value2, "indexname");
            return (Criteria) this;
        }

        public Criteria andPackagelabelIsNull() {
            addCriterion("Packagelabel is null");
            return (Criteria) this;
        }

        public Criteria andPackagelabelIsNotNull() {
            addCriterion("Packagelabel is not null");
            return (Criteria) this;
        }

        public Criteria andPackagelabelEqualTo(String value) {
            addCriterion("Packagelabel =", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotEqualTo(String value) {
            addCriterion("Packagelabel <>", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelGreaterThan(String value) {
            addCriterion("Packagelabel >", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelGreaterThanOrEqualTo(String value) {
            addCriterion("Packagelabel >=", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelLessThan(String value) {
            addCriterion("Packagelabel <", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelLessThanOrEqualTo(String value) {
            addCriterion("Packagelabel <=", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelLike(String value) {
            addCriterion("Packagelabel like", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotLike(String value) {
            addCriterion("Packagelabel not like", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelIn(List<String> values) {
            addCriterion("Packagelabel in", values, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotIn(List<String> values) {
            addCriterion("Packagelabel not in", values, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelBetween(String value1, String value2) {
            addCriterion("Packagelabel between", value1, value2, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotBetween(String value1, String value2) {
            addCriterion("Packagelabel not between", value1, value2, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andProportionIsNull() {
            addCriterion("proportion is null");
            return (Criteria) this;
        }

        public Criteria andProportionIsNotNull() {
            addCriterion("proportion is not null");
            return (Criteria) this;
        }

        public Criteria andProportionEqualTo(Float value) {
            addCriterion("proportion =", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotEqualTo(Float value) {
            addCriterion("proportion <>", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionGreaterThan(Float value) {
            addCriterion("proportion >", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionGreaterThanOrEqualTo(Float value) {
            addCriterion("proportion >=", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionLessThan(Float value) {
            addCriterion("proportion <", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionLessThanOrEqualTo(Float value) {
            addCriterion("proportion <=", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionIn(List<Float> values) {
            addCriterion("proportion in", values, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotIn(List<Float> values) {
            addCriterion("proportion not in", values, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionBetween(Float value1, Float value2) {
            addCriterion("proportion between", value1, value2, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotBetween(Float value1, Float value2) {
            addCriterion("proportion not between", value1, value2, "proportion");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreIsNull() {
            addCriterion("twoIndexScore is null");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreIsNotNull() {
            addCriterion("twoIndexScore is not null");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreEqualTo(Float value) {
            addCriterion("twoIndexScore =", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreNotEqualTo(Float value) {
            addCriterion("twoIndexScore <>", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreGreaterThan(Float value) {
            addCriterion("twoIndexScore >", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreGreaterThanOrEqualTo(Float value) {
            addCriterion("twoIndexScore >=", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreLessThan(Float value) {
            addCriterion("twoIndexScore <", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreLessThanOrEqualTo(Float value) {
            addCriterion("twoIndexScore <=", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreIn(List<Float> values) {
            addCriterion("twoIndexScore in", values, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreNotIn(List<Float> values) {
            addCriterion("twoIndexScore not in", values, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreBetween(Float value1, Float value2) {
            addCriterion("twoIndexScore between", value1, value2, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreNotBetween(Float value1, Float value2) {
            addCriterion("twoIndexScore not between", value1, value2, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeIsNull() {
            addCriterion("shouldPushTime is null");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeIsNotNull() {
            addCriterion("shouldPushTime is not null");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeEqualTo(String value) {
            addCriterion("shouldPushTime =", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeNotEqualTo(String value) {
            addCriterion("shouldPushTime <>", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeGreaterThan(String value) {
            addCriterion("shouldPushTime >", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeGreaterThanOrEqualTo(String value) {
            addCriterion("shouldPushTime >=", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeLessThan(String value) {
            addCriterion("shouldPushTime <", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeLessThanOrEqualTo(String value) {
            addCriterion("shouldPushTime <=", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeLike(String value) {
            addCriterion("shouldPushTime like", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeNotLike(String value) {
            addCriterion("shouldPushTime not like", value, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeIn(List<String> values) {
            addCriterion("shouldPushTime in", values, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeNotIn(List<String> values) {
            addCriterion("shouldPushTime not in", values, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeBetween(String value1, String value2) {
            addCriterion("shouldPushTime between", value1, value2, "shouldpushtime");
            return (Criteria) this;
        }

        public Criteria andShouldpushtimeNotBetween(String value1, String value2) {
            addCriterion("shouldPushTime not between", value1, value2, "shouldpushtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}